From f10f2b1c689851477dee9c85a0a1916c12ac1e23 Mon Sep 17 00:00:00 2001 From: Ercan Erden Date: Tue, 18 Nov 2014 16:16:18 -0500 Subject: [PATCH] Add zsh completion for publish command --- src/etc/_cargo | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/etc/_cargo b/src/etc/_cargo index 2bc520ce5..9fbb643c0 100644 --- a/src/etc/_cargo +++ b/src/etc/_cargo @@ -154,6 +154,16 @@ case $state in '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ ;; + publish) + _arguments \ + '(-h, --help)'{-h,--help}'[show help message]' \ + '--host=[Host to set the token for]' \ + '--manifest-path=[path to manifest]' \ + '--no-verify[Do not verify tarball until before publish]' \ + '--token[Token to use when uploading]' \ + '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ + ;; + read-manifest) _arguments \ '(-h, --help)'{-h,--help}'[show help message]' \ @@ -245,6 +255,7 @@ local -a commands;commands=( 'owner:manage the owners of a crate on the registry' 'package:assemble local package into a distributable tarball' 'pkgid:print a fully qualified package specification' +'publish:upload package to the registry' 'read-manifest:print manifest in JSON format' 'run:run the main binary of the local package' 'test:execute all unit and tests of a local package' -- 2.30.2